how to use setter in javascript